import Layout from "@/views/layout/index.vue";
export default [{
        path: "/home",
        name: "home",
        meta: {
            title: "首页",
            icon: "icon-panel",
        },
        component: Layout,
        redirect: "/home/index",
        children: [{
                path: "index",
                name: "home-index",
                meta: {
                    title: "仪表盘",
                },
                component: () =>
                    import ("@/views/home/index.vue"),
            },
            {
                path: "data",
                meta: {
                    title: "设备数据",
                },
                name: "data-view",
                component: () =>
                    import ("@/views/home/data.vue"),
            },
        ],
    },

    {
        path: "/demo",
        name: "demo",
        component: Layout,
        meta: {
            title: "demo",
            icon: "icon-d-right-arrow",
        },
        redirect: "/demo/demo1",
        children: [{
                path: "demo1",
                meta: {
                    title: "demo1",
                },
                name: "demo-demo1",
                component: () =>
                    import ("@/views/demo/demo1.vue"),
            },
            {
                path: "demo2",
                meta: {
                    title: "demo2",
                },
                name: "demo-demo2",
                component: () =>
                    import ("@/views/demo/demo2.vue"),
            },
        ],
    },
    {
        path: "/measurement",
        name: "measurement",
        component: Layout,
        meta: {
            title: "设备",
            icon: "icon-signal",
        },
        redirect: "/measurement/list",
        children: [{
                path: "list",
                meta: {
                    title: "list",
                },
                name: "measurement-list",
                component: () =>
                    import ("@/views/measurement/list.vue"),
            },
            {
                path: "add",
                meta: {
                    title: "add",
                },
                name: "measurement-add",
                component: () =>
                    import ("@/views/measurement/add.vue"),
            },
        ],
    },
    {
        path: "/fee",
        name: "fee",
        component: Layout,
        meta: {
            title: "计费",
            icon: "icon-fyxx",
        },
        redirect: "/fee/recharge",
        children: [{
                path: "recharge",
                meta: {
                    title: "充值记录",
                },
                name: "fee-recharge",
                component: () =>
                    import ("@/views/fee/recharge.vue"),
            },
            {
                path: "usage",
                meta: {
                    title: "使用记录",
                },
                name: "fee-usage",
                component: () =>
                    import ("@/views/fee/usage.vue"),
            },
        ],
    },
    {
        path: "/account",
        name: "account",
        component: Layout,
        meta: {
            title: "账号",
            icon: "icon-account",
        },
        redirect: "/account/list",
        children: [{
                path: "list",
                meta: {
                    title: "账号列表",
                },
                name: "account-list",
                component: () =>
                    import ("@/views/account/list.vue"),
            },
            {
                path: "add",
                meta: {
                    title: "添加账号",
                },
                name: "account-add",
                component: () =>
                    import ("@/views/account/add.vue"),
            },
        ],
    },
];